import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import MyHomeWork from'@/components/MyHomeWork'
import MyTable from'@/components/MyTable'
import MyHomeWork2 from '@/components/MyHomeWork2'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/myHomeWork',
      name: 'MyHomeWork',
      component: MyHomeWork
    },
    {
      path: '/myTable',
      name: 'MyTable',
      component: MyTable
    },
    {
      path: '/myHomeWork2',
      name: 'MyHomeWork2',
      component: MyHomeWork2
    }
  ]
})
